package chapter19_Enum;
import static chapter19_Enum.Spiciness.*;

/**
 * Date: 2019/6/18
 * Time: 14:15
 * User: Driss.
 * Description：
 */

//:enumerated/Burrito.java
public class Burrito {
    Spiciness degree;
    public Burrito(Spiciness degree){
        this.degree = degree;
    }

    public String toString(){
        return "Burrito is " + degree;
    }

    public static void main(String[] args) {
        //使用static import能够将enum实例的标识符带入到当前的命名空间，所以无需再用enum类型来修饰enum实例
        System.out.println(new Burrito(NOT));
        System.out.println(new Burrito(MEDIUM));
        System.out.println(new Burrito(HOT));
    }

}
